package com.zth.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import com.zth.mapper.PublicMapper;
import com.zth.pojo.Publics;
import com.zth.service.PublicService;

@Service
@Transactional
public class PublicServiceImpl implements PublicService{
	@Autowired
	private PublicMapper publicMapper;
	
	@Override
	public List<Publics> All() {
		
		return publicMapper.All();
	}

	@Override
	public List<Publics> typeSum() {
		
		return publicMapper.typeSum();
	}

	@Override
	public List<Publics> CondById(@RequestParam(name = "is[]")int[] is) {
		
		return publicMapper.CondById(is);
	}

}
